import type { FrontProcessing } from "@/FrontProcessing";
import { ArrayPlus } from "cax-base";
import { OMITCardData } from "./OMITCardData";
import { MaterialCardData } from "./MaterialCardData";
export class DataComp {
  engine: FrontProcessing;
  private bom: [] = [];

  // * OMIT卡片数据
  OMITCardList = new ArrayPlus<OMITCardData>([]);
  // * 材料卡片数据
  MaterialCardList = new ArrayPlus<MaterialCardData>([]);

  constructor(engine: FrontProcessing) {
    this.engine = engine;
  }

  private geometry: [] = [];
  // getData(type: string) {}

  getGeometryData() {
    return this.geometry;
  }

  setGeometryData(geometry: []) {
    this.geometry = geometry;
  }

  setBomData(bom: any) {
    this.bom = bom;
  }

  getBomData() {
    return this.bom;
  }

  // clearGeometryData() {}
}
